package com.dachuang.canjiren.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author testjava
 * @since 2020-07-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="User对象")
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String account;

    private String sex;

    private String head;

    private String email;

    private String password;

    private String address;

    private String cardNumber;

    private String cardPicture;

    private String active_code;

    private int active_status;

    /**
     * 角色集合
     */
    @TableField(exist = false)
    private List<Role> roleList;

    @TableField(exist = false)
    // 权限集合
    private List<Permission> JurisdictionList;


}
